Ad Widget

Collapse

Zabbix 2.2 CentOS 6.5 can`t connect to remote MySql database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tmi
    Junior Member
    • Aug 2014
    • 1

    #1

    Zabbix 2.2 CentOS 6.5 can`t connect to remote MySql database

    Hello. I can`t find where is problem.

    I am installed Zabbix server on CentOS 6.5.
    Configure database on other CentOS server.
    When connecting using mysql -u username -p -h ServerIP. I don`t have any problems, but when I try configure zabbix to use that database I got error:
    Error connecting to database: Can`t connect to MySQL server on 'IP' (13).

    Can somebody tell what can be a problem?
    Thank you.
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    SELinux
    Code:
    setsebool httpd_can_network_connect=1
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...